package com.canyou.activiti.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 流程部署实体
 *
 * @author fy
 * @date 2021/3/2 17:23
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "ProcessInstanceVO", description = "流程部署实体分页列表模型")
public class ProcessInstanceVO {

    @ApiModelProperty(value = "流程实例id")
    private String id;

    @ApiModelProperty(value = "流程实例名称")
    private String name;

    @ApiModelProperty(value = "流程部署id")
    private String processDefinitionId;

    @ApiModelProperty(value = "流程部署key")
    private String processDefinitionKey;

    @ApiModelProperty(value = "流程部署版本")
    private Integer processDefinitionVersion;

    @ApiModelProperty(value = "资源名称")
    private String resourceName;

    @ApiModelProperty(value = "部署id")
    private String deploymentId;

    @ApiModelProperty(value = "实例状态")
    private String status;

    @ApiModelProperty(value = "流程实例开始时间")
    private Date startTime;

    @ApiModelProperty(value = "流程实例状态 CREATED, RUNNING, SUSPENDED, CANCELLED, COMPLETED, DELETED")
    private Integer suspensionState;

    @ApiModelProperty(value = "流程实例描述")
    private String description;

}
